package com.example.cinema.entity.service.impl;

import com.example.cinema.entity.BizExeption;
import com.example.cinema.entity.Hall;
import com.example.cinema.mapper.HallMapper;
import com.example.cinema.entity.service.IHallService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yc138
 * @since 2024-08-26
 */
@Service
public class HallServiceImpl extends ServiceImpl<HallMapper, Hall> implements IHallService {
@Autowired
HallMapper hallMapper;
    @Override
    @Transactional(rollbackFor = BizExeption.class)
    public void add(Hall hall) throws BizExeption {
            hallMapper.insert(hall);
    }
}
